FindAssetsResult

data class FindAssetsResult(val assets: List<Asset>, val currentPage: Int, val nextPage: Int = -1, val total: Int, val facets: Map<String, List<AssetFacetValue>>? = null)

Return type of a findAssets query.

Constructors

Link copied to clipboard
constructor(assets: List<Asset>, currentPage: Int, nextPage: Int = -1, total: Int, facets: Map<String, List<AssetFacetValue>>? = null)

Properties

Link copied to clipboard

The assets for the requested page.

Link copied to clipboard

The current, requested page.

Link copied to clipboard

Distributions for the requested facet paths (FindAssetsQuery.facets), keyed by the exact requested path string. A missing key signals the source did not compute that facet. Null when no facets were requested or none were computed.

Link copied to clipboard

The next page that can be queried, -1 if there's no such page.

Link copied to clipboard
val total: Int

How many assets there are in total for the given query independent of any pages.